import {hrAjax as proFetch} from 'src/hrpub/common/utils/utils';

export default function checkPsnInfo(prams, callback) {
    const {orgVal, pk_psndoc_bad, includeCheckedPsn} = prams;
    let postData = {
        includeCheckedPsn,
        pk_org: orgVal && orgVal.refpk,
        pk_psndoc_bad
    };

    return proFetch({
        url: '/nccloud/hrhi/blacklist/BlackListQueryOneAction.do',
        body: postData,
    })
        .then((res) => {
            if (res.success) {
                callback && callback();
            }
        });
}
